package com.chb.demo.dao;

import com.chb.demo.entity.Admin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface AdminDao extends JpaRepository<Admin, String> {
    @Query("select a from Admin a where a.account=?1 and a.password=?2")
    Admin loginCheck(String account,String password);

}
